#region Using
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
#endregion Using

namespace CY.GFive.Core.Business
{
	public class WaterElectricityFees : Business.BusinessBase<WaterElectricityFees, int>
	{
		#region Fields and Properties

		private int monthNum = 0;
		/// <summary>
		/// 
		/// </summary>
		public int MonthNum
		{
			get { return monthNum; }
			set
			{
				if (value != monthNum)
				{
					MarkChanged("MonthNum");
					monthNum = value;
				}
			}
		}

		private String yearNum = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String YearNum
		{
			get { return yearNum; }
			set
			{
				if (value != yearNum)
				{
					MarkChanged("YearNum");
					yearNum = value;
				}
			}
		}

		private String buildingNbr = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String BuildingNbr
		{
			get { return buildingNbr; }
			set
			{
				if (value != buildingNbr)
				{
					MarkChanged("BuildingNbr");
					buildingNbr = value;
				}
			}
		}

		private Decimal deposit = 0.0m;
		/// <summary>
		/// 
		/// </summary>
		public Decimal Deposit
		{
			get { return deposit; }
			set
			{
				if (value != deposit)
				{
					MarkChanged("Deposit");
					deposit = value;
				}
			}
		}

		private String roomNbr = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String RoomNbr
		{
			get { return roomNbr; }
			set
			{
				if (value != roomNbr)
				{
					MarkChanged("RoomNbr");
					roomNbr = value;
				}
			}
		}

		private String rcdCate = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String RcdCate
		{
			get { return rcdCate; }
			set
			{
				if (value != rcdCate)
				{
					MarkChanged("RcdCate");
					rcdCate = value;
				}
			}
		}

		#endregion Fields and Properties

		#region Constructors

		public WaterElectricityFees()
		{
		}

		#endregion Constructors

		#region Base overrides

		protected override void ValidationRules()
		{
		}

		protected override WaterElectricityFees DataSelect(int id)
		{
			return Services.DALService.WaterElectricityFeesService.Select(id);
		}

		protected override void DataUpdate()
		{
			Services.DALService.WaterElectricityFeesService.Update(this);
		}

		protected override void DataInsert()
		{
			Services.DALService.WaterElectricityFeesService.Insert(this);
		}

		protected override void DataDelete()
		{
			Services.DALService.WaterElectricityFeesService.Delete(this);
		}

		#endregion Base overrides
	}
}
